<!DOCTYPE html>
<html lang="zh">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{{cv("website.site_name")}}</title>

    <link href="{{asset('system/css/bootstrap.min.css')}}" rel="stylesheet" type="text/css"/>
    <link href="{{asset('system/css/font-awesome.min.css')}}" rel="stylesheet" type="text/css"/>
    <link href="{{asset('system/css/bootstrap-switch.min.css')}}" rel="stylesheet" type="text/css"/>
    <link href="{{asset('system/css/components.css')}}" rel="stylesheet" type="text/css"/>
    <link href="{{asset('system/css/plugins.min.css')}}" rel="stylesheet" type="text/css"/>
    <link href="{{asset('system/js/toastr/toastr.min.css')}}" rel="stylesheet" type="text/css"/>
    <link href="http://at.alicdn.com/t/font_bk4avi8919duc8fr.css" rel="stylesheet" type="text/css"/>
    <link href="{{asset('system/css/app.css')}}" rel="stylesheet" type="text/css"/>
    <link href="{{asset('system/css/app-responsive.css')}}" rel="stylesheet" type="text/css"/>
    <link href="{{asset('system/css/style.css')}}" rel="stylesheet" type="text/css"/>
    <link href="{{asset('system/css/express.css')}}" rel="stylesheet" type="text/css"/>

    <script src="{{asset('system/js/jquery.min.js')}}"></script>
    <script src="{{asset('system/js/bootstrap.min.js')}}"></script>
    <script src="{{asset('system/js/flat-ui.min.js')}}"></script>
    <script src="{{asset('system/js/common.js')}}"></script>
    <script src="{{asset('system/js/js.cookie.min.js')}}"></script>
    <script src="{{asset('system/js/jquery.slimscroll.min.js')}}"></script>
    <script src="{{asset('system/js/jquery.blockui.min.js')}}"></script>
    <script src="{{asset('system/js/bootstrap-switch.min.js')}}"></script>
    <script src="{{asset('system/js/bootstrap-hover-dropdown.min.js')}}"></script>
    <script src="{{asset('system/js/table-bootstrap.min.js')}}" type="text/javascript"></script>
    <script src="{{asset('system/js/toastr/toastr.min.js')}}"></script>
    <script src="{{asset('system/js/jquery.form.js')}}"></script>
    <script src="{{asset('system/js/validate/jquery.validate.min.js')}}"></script>
    <script src="{{asset('system/js/validate/localization/messages_zh.min.js')}}"></script>

    @yield('head')
</head>
<body>
<!-- 头部导航条 -->
<header class="header black-bg">

    <div class="sidebar-toggle-box">
        <div id="phone-menu" class="iconfont icon-meun"></div>
    </div>

    <a href="#" class="logo hidden-xs"><b>WECY SYSTEM</b></a>

    <div class="top-menu">
        <div class="btn-group">
            <a href="#" class="username"> {{ ss('uname') }} </a>
            <a href="#" class="setting dropdown-toggle" data-toggle="dropdown">
                <span class="iconfont icon-shezhi"></span>
            </a>
            <ul role="menu" class="dropdown-menu">
                <li><a href="{{route('sys.information')}}">我的个人信息</a></li>
                <li><a href="{{route('sys.login.exit')}}">退出登录</a></li>
            </ul>
        </div>
    </div>
</header>

@include('system.layout_menu')

        <!-- 右侧主题内容 -->
<section id="main-content">
    <div class="wrapper">
        <div class="top-path">
            <ol class="breadcrumb">
                @if(!empty($parent_menu))
                    <li><a href="javascript:;">{{$parent_menu}}</a></li>
                @endif
                <li class="active"><a href="javascript:;">{{$menu_selected}}</a></li>
            </ol>
        </div>
        @yield('content')
    </div>
</section>
<div id="media-type" style="display: inherit"></div>
<!-- 内容结束 -->

<script type="text/javascript">
    $(function () {
        $('.dropdown-toggle').dropdown();
        $('.collapse').collapse();

        $("#phone-menu").bind('click', function () {
            if (getMediaType() == 2 || getMediaType() == 3) {
                if ($("#system-menu").hasClass("hidden-xs") || $("#system-menu").hasClass("hidden-md")) {
                    $("#system-menu").removeClass("hidden-xs").removeClass("hidden-md");
                } else {
                    $("#system-menu").addClass("hidden-xs").addClass("hidden-md");
                }
            }
        });
    });
</script>

@include('errors.toast')
<!--[if lt IE 9]>
<script src="http://apps.bdimg.com/libs/html5shiv/3.7/html5shiv.min.js"></script>
<script src="http://apps.bdimg.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
@yield("footer")
</body>
</html>